<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

use MvcBuilder\System\Tp51\MvcBuilderController;
//应用的配置文件中 default_return_type 记得修改成 html 否则返回的是字符串

Route::rule('mvcbuilder/:action', function ($action,MvcBuilderController $builderController){
    return $builderController->$action();
});

//Route::rule('component/:component_name', function ($component_name,Maker $maker){
//   return $maker->requset($component_name);
//});



